class Cat:
    def shout(self):
        print("喵喵")

class Dog:
    def shout(self):
        print("汪汪")
# 多态
def shout(obj):
    obj.shout()
cat = Cat()
dog = Dog()
shout(cat)
shout(dog)